When an empty Text note is created, a note type switcher will appear below the inline Title. Apart from changing the note type, it's also possible to apply a template:

Typing while the  Code,  Template or  All types menu is open narrows it down to the matching entries.

The switcher will disappear as soon as a text is entered.